<?php

/**
 * QuestionAnswer form.
 *
 * @package    elearning
 * @subpackage form
 * @author     Your name here
 */
class QuestionAnswerForm extends BaseQuestionAnswerForm
{
  public function configure()
  {
  	$answer = $this->getObject();
	if( $answer->getTrueAnswer() == 0 )
		$answer->setTrueAnswer(NULL);
  	$this->widgetSchema['true_answer'] = new sfWidgetFormInputCheckbox(array("value_attribute_value" => true),array('value' => true));
  }
}
